package com.itheima.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.TbActivity;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * (TbActivity)表数据库访问层
 */
public interface TbActivityDao extends BaseMapper<TbActivity> {

    List<TbActivity> selectByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime);

    String selectNameById(@Param("activityId") Long activityId);
}

